<HTML>
<HEAD>
    <meta charset="UTF-8">
    <title>TransitionSetBuilder.fade - transitionx</title>
    <link href="../../../style.css" rel="stylesheet">
</HEAD>
<BODY>
<a href="../../index.html">transitionx</a>&nbsp;/&nbsp;<a href="../index.html">in.arunkumarsampath.transitionx.transition.set</a>&nbsp;/&nbsp;<a
        href="index.html">TransitionSetBuilder</a>&nbsp;/&nbsp;<a href="./fade.html">fade</a><br/>
<br/>
<h1>fade</h1>
<a name="in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$fade(kotlin.Int, kotlin.Function1((in.arunkumarsampath.transitionx.transition.fade.FadeBuilder, kotlin.Unit)))"></a>
<code><span class="keyword">inline</span> <span class="keyword">fun </span><span class="identifier">fade</span><span
        class="symbol">(</span><span class="identifier"
                                     id="in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$fade(kotlin.Int, kotlin.Function1((in.arunkumarsampath.transitionx.transition.fade.FadeBuilder, kotlin.Unit)))/fadeMode">fadeMode</span><span
        class="symbol">:</span>&nbsp;<a
        href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span
        class="identifier">Int</span></a>&nbsp;<span class="symbol">=</span>&nbsp;Fade.IN or
    Fade.OUT<span class="symbol">, </span><span class="identifier"
                                                id="in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$fade(kotlin.Int, kotlin.Function1((in.arunkumarsampath.transitionx.transition.fade.FadeBuilder, kotlin.Unit)))/fadeBuilder">fadeBuilder</span><span
            class="symbol">:</span>&nbsp;<a
            href="../../in.arunkumarsampath.transitionx.transition.fade/-fade-builder/index.html"><span
            class="identifier">FadeBuilder</span></a><span class="symbol">.</span><span
            class="symbol">(</span><span class="symbol">)</span>&nbsp;<span
            class="symbol">-&gt;</span>&nbsp;<a
            href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
            class="identifier">Unit</span></a>&nbsp;<span class="symbol">=</span>&nbsp;{}<span
            class="symbol">)</span><span class="symbol">: </span><a
            href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span
            class="identifier">Unit</span></a></code>
<p>Adds a <a href="https://developer.android.com/reference/android/support/transition/Fade.html">Fade</a>
    transition to this transition. <a
            href="https://developer.android.com/reference/android/support/transition/Fade.html">Fade</a>
    triggers on visibility changes.</p>
<p>
    <a href="fade.html#in.arunkumarsampath.transitionx.transition.set.TransitionSetBuilder$fade(kotlin.Int, kotlin.Function1((in.arunkumarsampath.transitionx.transition.fade.FadeBuilder, kotlin.Unit)))/fadeMode">fadeMode</a>
    can be used to configure whether this fade transition triggers on <a
        href="https://developer.android.com/reference/android/support/transition/Visibility.html#onAppear(android.view.ViewGroup, android.support.transition.TransitionValues, int, android.support.transition.TransitionValues, int)">Visibility.onAppear</a>
    or <a
        href="https://developer.android.com/reference/android/support/transition/Visibility.html#onDisappear(android.view.ViewGroup, android.support.transition.TransitionValues, int, android.support.transition.TransitionValues, int)">Visibility.onDisappear</a>
    or both.</p>
<p><strong>See Also</strong><br/>
<p><a href="https://developer.android.com/reference/android/support/transition/Visibility.html">Visibility</a>
</p>
<p><a href="https://developer.android.com/reference/android/support/transition/Fade.html">Fade</a>
</p>
<p>
    <a href="../../in.arunkumarsampath.transitionx.transition.fade/-fade-mode/index.html">FadeMode</a>
</p>
</p>
</BODY>
</HTML>
